import 'package:ctrip_flutter/app/widget/search_bar.dart';
import 'package:flutter/material.dart';

class SearchPage extends StatefulWidget {
  final bool hideLeft;
  final String searchUrl;
  final String keyword;
  final String hint;

   SearchPage({Key key, this.hideLeft = false, this.searchUrl, this.keyword, this.hint}) : super(key: key);
  @override
  _SearchPageState createState() => _SearchPageState();
}

class _SearchPageState extends State<SearchPage> {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      theme: ThemeData(primaryColor: Colors.amberAccent),
      home: Scaffold(
        appBar: AppBar(title: Text('搜索'),),
        body: Column(
          children: <Widget>[
            SearchBar(
              hideLeft: true,
            )
          ],
        ),
      ),
    );
  }
}
